<template>
  <div :class="$style.title">
    <h3 :class="[$style.h3, titleClass]" :style="titleStyle">{{ title }}</h3>
    <slot />
  </div>
</template>
<script>
export default {
  name: 'Title',
  props: {
    title: {
      type: [String, Number],
      default: ''
    },
    titleStyle: {
      type: String,
      default: ''
    },
    titleClass: {
      type: String,
      default: ''
    }
  }
}
</script>
<style lang='scss' module>
@import "@/styles/mixin.scss";
.title{
    @include flex($align:center);
    padding: 20px 0 10px 0;
    & .h3{
        padding: 0;
        font-size: 14px;
        font-weight: 500;
        color: rgba(13, 138, 114 ,1);
        margin: 0;
        padding-right: 10px;
    }
}
</style>
